import InternalRadio, { RadioProps } from './Radio';
import Group from './Group';
import React from 'react';

interface CompoundedComponent extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLElement>> {
  Group: typeof Group;
}

const Radio = InternalRadio as CompoundedComponent;
Radio.Group = Group;

export default Radio;